'''
从下面html中提取出
[('Tiger','two tigers two tigers run fast'),('Rabbit','small white rabbit white and  white')]

动物名称：。。。
动物描述：。。。
'''
import re
html = """
<div class="animal">
    <p class="name"><a title="Tiger"></a></p>
    <p class="content">two tigers two tigers run fast</p>
</div>
<div class="animal">
    <p class="name"><a title="Rabbit"></a></p>
    <p class="content">small white rabbit white and white</p>
</div>
"""
p = re.compile('<p class="name"><a title="(.*?)"></a></p>.*?<p class="content">(.*?)</p>',re.S)
# [('Tiger', 'two tigers two tigers run fast'), ('Rabbit', 'small white rabbit white and white')]
r_list = p.findall(html)
print(r_list)
for r in r_list:
    print("动物名称：",r[0])
    print("动物描述：",r[1])
    print("============================")